package com.ktjy.pet;

import com.ktjy.entity.Pet;
import com.ktjy.factory.PetDaoFactory;
import com.ktjy.service.PetService;
import com.ktjy.service.PetServiceImpl;

public class Main {
    public static void main(String[] args) {
        PetService petService = new PetServiceImpl();
        Pet pet = new Pet();
        pet.setName("小马喽");
        petService.sava(pet);

        /**
         *将数据库修改为oracle 只需修改
         * PetDaoFactory.defaultBeanName = "PetDaoOracleImpl";
         */
    }
}
